﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageFanLiRule.aspx.cs"
    Inherits="Manageweb_FanLi_ManageFanLiRule" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>返利规则管理</title>
    <link href="../images/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin:0 auto;">
        <table width="100%" >
            <tr>
                <td style="padding-top:8px; padding-bottom:8px;text-align:center">
                    <asp:LinkButton ID="LinkButton1" runat="server" 
                        PostBackUrl="~/Manageweb/FanLi/AddUpdateRule.aspx">添加新规则</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td  style=" text-align:center">
                    <asp:GridView ID="GV_UserList" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" Width="70%" EmptyDataText="暂无数据"
                        OnPageIndexChanging="GV_UserList_PageIndexChanging" PageSize="30">
                        <FooterStyle Font-Bold="True" ForeColor="White" VerticalAlign="Top" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField HeaderText="金额范围">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0}～{1}",Eval("minValue"),Eval("MaxValue")) %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                              <asp:BoundField DataField="description" HeaderText="会员等级" />
                            <asp:BoundField DataField="field1" HeaderText="推荐人1" />
                            <asp:BoundField DataField="field2" HeaderText="推荐人2" />
                            <asp:BoundField DataField="field3" HeaderText="推荐人3" />
                            <asp:BoundField DataField="field4" HeaderText="推荐人4" />
                            <asp:BoundField DataField="field5" HeaderText="推荐人5"></asp:BoundField>
                            <asp:BoundField DataField="field6" HeaderText="推荐人6" />
                            <asp:BoundField DataField="field7" HeaderText="推荐人7" />
                            <asp:BoundField DataField="field8" HeaderText="推荐人8" />
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnUpdate" runat="server" CommandArgument='<%#Eval("ID")%>'  
                                        PostBackUrl='<%# "~/Manageweb/FanLi/AddUpdateRule.aspx?recordID="+ Eval("ID") %>'>修改</asp:LinkButton>
                                    <asp:LinkButton ID="btnDelete" runat="server" CommandArgument='<%# Eval("ID")%>'
                                        OnCommand="btnDelete_Command">删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle BackColor="#507CD1" BorderStyle="None" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
